#!/bin/sh

APP_NAME=nupp-gateway

pid=`ps ux | grep $APP_NAME | grep java | grep -v "grep" | awk '{print $2}'`

if [ -z "$pid" ] ; then
  echo "No $APP_NAME Server running."
  exit -1;
fi

echo "The $APP_NAME(${pid}) is running..."
kill -9 ${pid}
echo "Send shutdown request to $APP_NAME Server(${pid}) OK"

